﻿
namespace ChainOfResponsibility
{
    public class LimitSupport : Support
    {
        private int limit;

        public LimitSupport(string name, int limit)
            : base(name)
        {
            this.limit = limit;
        }


        protected override bool Resolve(Trouble trouble)
        {
            return ((trouble.GetNumber() < limit) ? true : false);
        }
    }
}
